import request from '@/utils/request'

// 查询运行机器人币对列表
export function listExchange(query) {
  return request({
    url: '/platform/exchange/list',
    method: 'get',
    params: query
  })
}

// 查询运行机器人币对详细
export function getExchange(runningId) {
  return request({
    url: '/platform/exchange/' + runningId,
    method: 'get'
  })
}

// 新增运行机器人币对
export function addExchange(data) {
  return request({
    url: '/platform/exchange',
    method: 'post',
    data: data
  })
}

// 修改运行机器人币对
export function updateExchange(data) {
  return request({
    url: '/platform/exchange',
    method: 'put',
    data: data
  })
}

// 删除运行机器人币对
export function delExchange(runningId) {
  return request({
    url: '/platform/exchange/' + runningId,
    method: 'delete'
  })
}

// 导出运行机器人币对
export function exportExchange(query) {
  return request({
    url: '/platform/exchange/export',
    method: 'get',
    params: query
  })
}